<template>
  <div>
    <input type="text" ref="refdom" />
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
const refdom = ref()

onMounted(() => {
  refdom.value.focus()
  console.log(refdom.value)
})
</script>

<style scoped></style>
